/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.just.dusin.ooii.component.standard;

import java.util.logging.Level;
import java.util.logging.Logger;
import junit.framework.TestCase;
import org.just.dusin.ooii.component.Source;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 *
 * @author Administrator
 */
public class AMQMD5CheckConsoleSink extends TestCase {
    
    public AMQMD5CheckConsoleSink(String testName) {
        super(testName);
    }
    
    @Override
    protected void setUp() throws Exception {
        super.setUp();
    }
    
    @Override
    protected void tearDown() throws Exception {
        super.tearDown();
    }
    public void testAmqSink(){
        ApplicationContext ctx=new ClassPathXmlApplicationContext("org/just/dusin/ooii/component/standard/AMQMD5CheckConsoleSink.xml");
        Source autoSource = (Source)ctx.getBean("amqSource");
        Thread t=new Thread(autoSource);
        t.start();        
        try {
            t.join();
        } catch (InterruptedException ex) {
            Logger.getLogger(AotoMessageSourceTest.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
